package org.csu.goodpartner.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("orders")
public class Order {
    @TableId(value = "orderid",type = IdType.AUTO)
    //订单id
    private int orderid;
    @TableField(value="userid")
    //买家id
    private int userid;
    @TableField(value="shopid")
    //店铺id
    private int shopid;
    @TableField(value="orderdate")
    //下单时间
    private Date orderdate;
    @TableField(value = "addrnumber")
    //收件人地址
    private int addrnum;
    @TableField(value="status")

    private int status;

    public int getOrderid() {
        return orderid;
    }

    public void setOrderid(int orderid) {
        this.orderid = orderid;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getShopid() {
        return shopid;
    }

    public void setShopid(int shopid) {
        this.shopid = shopid;
    }

    public Date getOrderdate() {
        return orderdate;
    }

    public void setOrderdate(Date orderdate) {
        this.orderdate = orderdate;
    }

    public int getAddrnum() {
        return addrnum;
    }

    public void setAddrnum(int addrnum) {
        this.addrnum = addrnum;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
